import request from '@/utils/request'

export function login(data: { IC: string }) {
  return request({
    url: 'api/Login/GetPersonLimit',
    method: 'post',
    data
  })
}

export function loginByScanner(data: { data: string }) {
  return request({
    url: 'api/Login/GetPerson',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/Login/GetUserLimit',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/api/Admin/Logout',
    method: 'post'
  })
}
